"""
The MIT License (MIT)
Copyright © 2020 Walkline Wang (https://walkline.wang)
https://gitee.com/walkline/ESP32-BLE-Mechanical_Keypad
"""
# /* keycode to consumer usage */
# #define KEYCODE2CONSUMER(key) \
#     (key == KC_AUDIO_MUTE       ?  AUDIO_MUTE : \
#     (key == KC_AUDIO_VOL_UP     ?  AUDIO_VOL_UP : \
#     (key == KC_AUDIO_VOL_DOWN   ?  AUDIO_VOL_DOWN : \
#     (key == KC_MEDIA_NEXT_TRACK ?  TRANSPORT_NEXT_TRACK : \
#     (key == KC_MEDIA_PREV_TRACK ?  TRANSPORT_PREV_TRACK : \
#     (key == KC_MEDIA_FAST_FORWARD ?  TRANSPORT_FAST_FORWARD : \
#     (key == KC_MEDIA_REWIND     ?  TRANSPORT_REWIND : \
#     (key == KC_MEDIA_STOP       ?  TRANSPORT_STOP : \
#     (key == KC_MEDIA_EJECT      ?  TRANSPORT_STOP_EJECT : \
#     (key == KC_MEDIA_PLAY_PAUSE ?  TRANSPORT_PLAY_PAUSE : \
#     (key == KC_MEDIA_SELECT     ?  AL_CC_CONFIG : \
#     (key == KC_MAIL             ?  AL_EMAIL : \
#     (key == KC_CALCULATOR       ?  AL_CALCULATOR : \
#     (key == KC_MY_COMPUTER      ?  AL_LOCAL_BROWSER : \
#     (key == KC_WWW_SEARCH       ?  AC_SEARCH : \
#     (key == KC_WWW_HOME         ?  AC_HOME : \
#     (key == KC_WWW_BACK         ?  AC_BACK : \
#     (key == KC_WWW_FORWARD      ?  AC_FORWARD : \
#     (key == KC_WWW_STOP         ?  AC_STOP : \
#     (key == KC_WWW_REFRESH      ?  AC_REFRESH : \
#     (key == KC_BRIGHTNESS_UP    ?  BRIGHTNESSUP : \
#     (key == KC_BRIGHTNESS_DOWN  ?  BRIGHTNESSDOWN : \
#     (key == KC_WWW_FAVORITES    ?  AC_BOOKMARKS : 0)))))))))))))))))))))))
